<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>聊天</title>
		
	</head>
	<body>
		<div id="app">111</div>
		
		<script type="text/javascript" src="js/treaty.js"></script>
		<script src="https://unpkg.com/vue@2.6.11/dist/vue.js"></script> 
		<script type="text/javascript">
			// document.addEventListener('UniAppJSBridgeReady', function() {
				
			// });
			console.log(Vue)
			new Vue({
				el: '#app',
				data: {
					options: {}
				},
				methods: {
					
				},
				created () {
					let options = {}
					let arr = (location.href.slice(location.href.indexOf('?') + 1)).split('&')
					arr.forEach(item => {
						let key = item.split('=')[0]
						let value = item.split('=')[1]
						options[key] = value
					})
					this.options = options
					console.log(this.options.userId) 
				}
			})
		</script>
	</body>
</html>
